home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / xpaint-2.1.1 / Imakefile < prev    next >
Encoding:
Makefile  |  1995-06-22  |  3.4 KB  |  122 lines

  1. #
  2. # Imakefile for xpaint
  3. #
  4.  
  5. XPAINT_TOP = ./
  6. #include "Local.config"
  7.  
  8. DEFINES = $(XPM_INCLUDE) $(EXTRA_DEFINES)
  9.  
  10. #define PassCDebugFlags CDEBUGFLAGS=DefaultCDebugFlags
  11.  
  12. #########################
  13. # Nothing to change below here
  14.  
  15. XPSRC = main.c menu.c operation.c graphic.c misc.c \
  16.         fileName.c fontSelect.c colorEdit.c \
  17.         pattern.c hash.c palette.c fatBitsEdit.c  \
  18.         dialog.c protocol.c size.c text.c cutCopyPaste.c \
  19.     image.c imageComp.c color.c readRC.c \
  20.     iprocess.c help.c typeConvert.c grab.c
  21. XPOBJ = main.o menu.o operation.o graphic.o misc.o \
  22.         fileName.o fontSelect.o colorEdit.o \
  23.         pattern.o hash.o palette.o fatBitsEdit.o \
  24.         dialog.o protocol.o size.o text.o cutCopyPaste.o \
  25.     image.o imageComp.o color.o readRC.o \
  26.     iprocess.o help.o typeConvert.o grab.o
  27.  
  28. OPSRC = pencilOp.c boxOp.c lineOp.c circleOp.c  \
  29.         brushOp.c fontOp.c arcOp.c polyOp.c fillOp.c \
  30.         selectOp.c sprayOp.c blobOp.c
  31. OPOBJ = pencilOp.o boxOp.o lineOp.o circleOp.o  \
  32.         brushOp.o fontOp.o arcOp.o polyOp.o fillOp.o \
  33.         selectOp.o sprayOp.o blobOp.o
  34.  
  35. XPWIDSRC = Paint.c Colormap.c PaintRegion.c PaintUndo.c PaintEvent.c 
  36. XPWIDOBJ = Paint.o Colormap.o PaintRegion.o PaintUndo.o PaintEvent.o 
  37.  
  38. SRCS = $(XPSRC) $(OPSRC) $(XPWIDSRC) $(RWSRC)
  39. OBJS = $(XPOBJ) $(OPOBJ) $(XPWIDOBJ) $(RWOBJ)
  40.  
  41. HDRS = Colormap.h ColormapP.h hash.h Paint.h \
  42.     PaintP.h palette.h xpaint.h menu.h \
  43.     text.h cutCopyPaste.h image.h patchlevel.h \
  44.     misc.h rc.h ops.h
  45.  
  46. SYS_LIBRARIES = XawClientLibs -lm
  47.  
  48. #ifdef SGIArchitecture
  49. SGI_LIB = -limage
  50. #endif
  51.  
  52. DEPLIBS = always
  53. LOCAL_LIBRARIES = rw/librw.a $(XPM_LIB) $(TIFF_LIB) $(SGI_LIB) $(JPEG_LIB)
  54.  
  55. #
  56. #    We build against installed XPM and TIFF libraries, rather than building
  57. #    the ones in the source distribution
  58.  
  59. SUBDIRS = rw # libtiff xpm
  60.  
  61. XCOMM all::      .msgPrinted
  62. XCOMM install:: .msgPrinted
  63. XCOMM
  64. XCOMM .msgPrinted:
  65. XCOMM    @echo
  66. XCOMM    @echo "** By default TIFF support is compiled into XPaint, if you do not have"
  67. XCOMM    @echo "** the TIFF libraries installed on you system, or they are installed"
  68. XCOMM    @echo "** in another directory that where XPaint looks for them.  Read the file"
  69. XCOMM    @echo "** 'TiffMSG' for information on how to change/update the library information."
  70. XCOMM    @echo
  71. XCOMM    @touch .msgPrinted
  72.  
  73. ComplexProgramTarget(xpaint)
  74. InstallAppDefaults(XPaint)
  75.  
  76. NamedMakeSubdirs(always, $(SUBDIRS))
  77. MakefileSubdirs($(SUBDIRS) bitmaps)
  78. CleanSubdirs($(SUBDIRS))
  79.  
  80. # Other targets...
  81.  
  82. clean::
  83.     rm -f XPaint.ad.h DefaultRC.txt.h Help.txt.h
  84.  
  85. includes:: XPaint.ad.h DefaultRC.txt.h Help.txt.h
  86.  
  87. XPaint.ad.h: XPaint.ad
  88.     sh ./ad2c.script $? > $@
  89. DefaultRC.txt.h: DefaultRC
  90.     sh ./ad2c.script $? > $@
  91. Help.txt.h: Help.txt
  92.     sed 's/^$$/ /' < $? | sh ./ad2c.script > $@
  93.  
  94. main.o: XPaint.ad.h
  95. readRC.o: DefaultRC.txt.h
  96. help.o: Help.txt.h
  97.  
  98. TEXT = README INSTALL TODO Operator.doc xpaint.man DefaultRC Help.txt TiffMSG
  99. MISC = Imakefile Makefile.std ad2c.script XPaint.ad Local.config
  100.  
  101. #
  102. #  The following lines are in order, so that make does them
  103. #    in the right order, WILL NOT PARRALiZE
  104. #
  105.  
  106. makelist:: 
  107.     -$(RM) filelist
  108.     @touch filelist
  109.  
  110. makelist:: 
  111.     sh -c 'for i in '"$(TEXT) $(SRCS) $(MISC) $(HDRS)"' ; do \
  112.         echo $(CURRENT_DIR)/$$i >> $(TOP)/filelist ; done '
  113.  
  114. NamedTargetSubdirs(makelist, $(SUBDIRS) bitmaps, , , makelist)
  115.  
  116.  
  117. kit: makelist
  118.     sh -c 'sum="`cat filelist`" ; makekit -oMANIFEST MANIFEST $$sum'
  119.  
  120. tar: makelist
  121.     sh -c 'cd .. ; tar cf - `sed -e "s:^./::" -e "s:^:xpaint/:" xpaint/filelist` | compress > xx.tar.Z'
  122.